package com.wuyoucar.controller;

import com.wuyoucar.common.ResultBean;
import com.wuyoucar.service.PolicyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/policy")
public class PolicyController {

    @Autowired
    private PolicyService policyService;

    //根据订单号查询是否存在
    @RequestMapping("/getReportbyNum")
    public ResultBean getReportbyNum(Integer policynum,Integer firstid) {
        return policyService.getReportbyNum(policynum,firstid);
    }

    //根据订单号查询信息
    @RequestMapping("/getReportbyPolicynum")
    public ResultBean getReportbyNum(Integer policynum) {
        return policyService.getReportbyNum(policynum);
    }
}
